-- GENERATED SPELL FOR [Infinite Assassin] --


function spell0_17835(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17835', 557, 1)
end

function spell1_17835(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(15657,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17835', 637, 1)
end

function spell2_17835(pUnit, Event) --@Corrupt Medivh,n/a--
pUnit:FullCastSpellOnTarget(31326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17835', 0, 1)
end

function spell3_17835(pUnit, Event) --@Kidney Shot,n/a--
pUnit:FullCastSpellOnTarget(30832,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17835', 3000, 1)
end

function Sorts_17835(pUnit, Event)
local choix_sorts_17835 = math.random(0, 3)
if choix_sorts_17835 == 0 then
pUnit:RegisterEvent('spell0_17835', 1, 1)
end
if choix_sorts_17835 == 1 then
pUnit:RegisterEvent('spell1_17835', 1, 1)
end
if choix_sorts_17835 == 2 then
pUnit:RegisterEvent('spell2_17835', 1, 1)
end
if choix_sorts_17835 == 3 then
pUnit:RegisterEvent('spell3_17835', 1, 1)
end
end

function mob17835_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17835', math.random(1500, 3000), 1)
end

function mob17835_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17835_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17835_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17835, 1, 'mob17835_Action')
RegisterUnitEvent(17835, 2, 'mob17835_Leave')
RegisterUnitEvent(17835, 3, 'mob17835_Kill')
RegisterUnitEvent(17835, 4, 'mob17835_Die')
